import { defHttp } from '/@/utils/http/axios'
import { DeviceListSO, DeviceListResult } from './model/deviceModel'
import { BasicFetchResult, BasicPageParams, BasicQueryModel } from '/@/api/model/baseModel'

enum Api {
  listDevice = '/device/list',
}

/**
 * @description: Get user menu based on id
 */

export const listDevice = (params: DeviceListSO) => {
  return defHttp.get<DeviceListResult[]>({
    url: Api.listDevice,
    params: { tenantId: params.tenantId, projectId: params.projectId, keyword: params.keyword },
  })
}
